import request from '@/router/axios';
// 确认报废
export const confirmScrap = (data) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/confirm-scrap',
    method: 'post',
    data
  });
};

// 拒收报废
export const refuseScrap = (params) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/refuse-scrap',
    method: 'get',
    params: {
      ...params
    }
  });
};


// 获取库存报废产品序列号
export const getProductSequenceInfo = (params) => {
  return request({
    url: '/api/mes-product/product/get-product-by-packid',
    method: 'get',
    params: {
      ...params
    }
  });
};

export const getList = (params) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/scrap/list',
    method: 'get',
    params: {
      ...params,
    }
  });
};

export const getDetail = (id) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/scrap-confirm/detail',
    method: 'get',
    params: {
      id
    }
  });
};
